<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/30
 * Time: 18:25
 */
namespace app\common\helper;
class qrcode_helper
{
    /**
     * 生成二维码
     * @param string $url 二维码对应的真实链接
     * @return array
     */
    public static function generate_qrcode($url)
    {
        return url('/qrcode/index?data='.urlencode($url));
    }
}